package gui;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: liuliwei
 * Date: 2017-08-14
 * Time: 上午8:52
 * Description: ${description}
 */
public class FirstGui {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.setTitle("hahaha");
        frame.setBounds(100,100,100,1000);
        frame.setLayout(new FlowLayout());
        JPanel panel = new JPanel();
        JButton jButton = new JButton("33");
        jButton.setBounds(5,5,15,15);
        JTextField jTextField = new JTextField();
        jTextField.setBounds(20,20,6,6);
        panel.add(jButton);
        panel.add(jTextField);
        panel.setBounds(100,100,100,100);

//        frame.add(jTextField);
        frame.add(panel);
        frame.add(jButton);
        frame.setVisible(true);

    }
}
